/*jshint esversion: 6 */
import 'bootstrap';

const $menus = $('#navbar ul li');
const menuNames = ['/', '/about-us.html', '/products.html', '/why-us.html', '/career.html', '/contact-us.html'];

var index,
    pathname = location.pathname;

if(~(index = menuNames.indexOf(pathname))) {
    $menus.removeClass('active');
    $($menus[index]).addClass('active');
}